package com.example.rpdomain.rule;


import com.example.config.exception.RLdCodeException;
import lombok.Getter;


@Getter
public class MinNumber {

    private Integer number;

    public MinNumber(Integer number){
        if (number < 1){
            throw new RLdCodeException("规则次数必须大于等于 1");
        }

        this.number = number;
    }

}
